package org.flint92.springboot.starter.controller;

import org.flint92.springboot.starter.domain.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author flint92
 */
@RestController
public class PersonController {

    private final Person person;

    @Autowired
    public PersonController(Person person) {
        this.person = person;
    }

    @GetMapping("/person")
    public Person person() {
        return person;
    }
}
